import java.util.Collections;
import java.util.LinkedList;
import java.util.List;



public class CardDeck {
	
	private List<Card> deck = new LinkedList<Card>();
	

	public List<Card> getDeck(){
		return deck;
		
	}
	
	public CardDeck() {
		

			for (Suit suit: Suit.values()){
				for (int j=2; j<15; j++) {
					Card card= new Card();
					card.setRate(j);
					card.setSuit(suit);
					card.setScore(j);
					deck.add(card);
				}

			}
			Collections.shuffle(deck);
			
	}

}
